/**
 * @Date: 2022-04-16 09:58:09
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-17 22:35:54
 * @FilePath: \weibo-api\model\Topic.js
 * @Description: 评论表模型
 */

const sequelize = require("../db/seq");
const { DataTypes } = require("sequelize");
//创建模型 表名字为'blog'
const Topic = sequelize.define("topic", {
  blogId: {
    type: DataTypes.INTEGER,
    allowNull: false,
  },
  userId: {
    type: DataTypes.INTEGER,
    allowNull: false,
  },
  content: {
    type: DataTypes.TEXT,
    allowNull: false,
    comment: "评论内容",
  },
});
module.exports = Topic;
